package cn.controller.product;

import cn.service.productService.ProductServiceImpl.ServiceServiceImpl;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱颢阳
 * @description
 * @time 2024/8/22 23:04
 */
@RestController
@CrossOrigin
@RequestMapping("/product")
public class ServiceController {
    @Autowired
    ServiceServiceImpl service;
    @RequestMapping("/selectAll")
    public Result selectAll(){
        return service.selectAll();
    }
}
